home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cato / Xm / XmLabel.z / XmLabel
Text File  |  1998-10-20  |  46KB  |  727 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))               UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV               XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmLLLLaaaabbbbeeeellll - The Label widget class
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           ####iiiinnnncccclllluuuuddddeeee <<<<XXXXmmmm////LLLLaaaabbbbeeeellll....hhhh>>>>
  13.  
  14.  
  15.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  16.           This page documents version 1.2 of the Motif library.
  17.  
  18.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.           Label is an instantiable widget and is also used as a
  20.           superclass for other button widgets, such as PushButton and
  21.           ToggleButton.  The Label widget does not accept any button
  22.           or key input, and the help callback is the only callback
  23.           defined.  Label also receives enter and leave events.
  24.  
  25.           Label can contain either text or a pixmap.  Label text is a
  26.           compound string.  Refer to the _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r'_s Guide
  27.           for more information on compound strings.  The text can be
  28.           multilingual, multiline, and/or multifont.  When a Label is
  29.           insensitive, its text is stippled, or the user-supplied
  30.           insensitive pixmap is displayed.
  31.  
  32.           Label supports both accelerators and mnemonics primarily for
  33.           use in Label subclass widgets that are contained in menus.
  34.           Mnemonics are available in a menu system when the button is
  35.           visible.  Accelerators in a menu system are accessible even
  36.           when the button is not visible.  The Label widget displays
  37.           the mnemonic by underlining the first matching character in
  38.           the text string.  The accelerator is displayed as a text
  39.           string adjacent to the label text or pixmap.
  40.  
  41.           Label consists of many margin fields surrounding the text or
  42.           pixmap.  These margin fields are resources that may be set
  43.           by the user, but Label subclasses and Manager parents also
  44.           modify some of these fields.  They tend to modify the
  45.           XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnLLLLeeeefffftttt, XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnRRRRiiiigggghhhhtttt, XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnTTTToooopppp, and
  46.           XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnBBBBoooottttttttoooommmm resources and leave the XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnWWWWiiiiddddtttthhhh and
  47.           XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnHHHHeeeeiiiigggghhhhtttt resources as set by the application.
  48.  
  49.           Label takes into account XXXXmmmmNNNNsssshhhhaaaaddddoooowwwwTTTThhhhiiiicccckkkknnnneeeessssssss in determining
  50.           its layout but does not draw the shadow.  That is, if
  51.           XXXXmmmmNNNNsssshhhhaaaaddddoooowwwwTTTThhhhiiiicccckkkknnnneeeessssssss is greater than 0, Label leaves space for
  52.           the shadow, but the shadow does not appear.
  53.  
  54.           In a Label XXXXmmmmNNNNttttrrrraaaavvvveeeerrrrssssaaaallllOOOOnnnn and XXXXmmmmNNNNhhhhiiiigggghhhhlllliiiigggghhhhttttOOOOnnnnEEEEnnnntttteeeerrrr are forced
  55.           to False inside Popup MenuPanes, Pulldown MenuPanes, and
  56.           OptionMenus.  Otherwise these resources default to False.
  57.  
  58.         CCCCllllaaaasssssssseeeessss
  59.           Label inherits behavior and resources from CCCCoooorrrreeee and
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))               UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV               XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))
  71.  
  72.  
  73.  
  74.           XXXXmmmmPPPPrrrriiiimmmmiiiittttiiiivvvveeee Classes.
  75.  
  76.           The class pointer is xxxxmmmmLLLLaaaabbbbeeeellllWWWWiiiiddddggggeeeettttCCCCllllaaaassssssss.
  77.  
  78.           The class name is XXXXmmmmLLLLaaaabbbbeeeellll.
  79.  
  80.         NNNNeeeewwww RRRReeeessssoooouuuurrrrcccceeeessss
  81.           The following table defines a set of widget resources used
  82.           by the programmer to specify data.  The programmer can also
  83.           set the resource values for the inherited classes to set
  84.           attributes for this widget.  To reference a resource by name
  85.           or by class in a .Xdefaults file, remove the XXXXmmmmNNNN or XXXXmmmmCCCC
  86.           prefix and use the remaining letters.  To specify one of the
  87.           defined values for a resource in a .Xdefaults file, remove
  88.           the XXXXmmmm prefix and use the remaining letters (in either
  89.           lowercase or uppercase, but include any underscores between
  90.           words).  The codes in the access column indicate if the
  91.           given resource can be set at creation time (C), set by using
  92.           XXXXttttSSSSeeeettttVVVVaaaalllluuuueeeessss (S), retrieved by using XXXXttttGGGGeeeettttVVVVaaaalllluuuueeeessss (G), or is
  93.           not applicable (N/A).
  94.  
  95.                                                 XXXXmmmmLLLLaaaabbbbeeeellll RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
  96.      NNNNaaaammmmeeee                        CCCCllllaaaassssssss                       TTTTyyyyppppeeee                DDDDeeeeffffaaaauuuulllltttt                  AAAAcccccccceeeessssssss
  97.      ___________________________________________________________________________________________________________
  98.      XmNaccelerator              XmCAccelerator              String              NULL                     CSG
  99.      XmNacceleratorText          XmCAcceleratorText          XmString            NULL                     CSG
  100.      XmNalignment                XmCAlignment                unsigned char       dynamic                  CSG
  101.      XmNfontList                 XmCFontList                 XmFontList          dynamic                  CSG
  102.      XmNlabelInsensitivePixmap   XmCLabelInsensitivePixmap   Pixmap              XmUNSPECIFIED_PIXMAP     CSG
  103.      XmNlabelPixmap              XmCLabelPixmap              Pixmap              XmUNSPECIFIED_PIXMAP     CSG
  104.      XmNlabelString              XmCXmString                 XmString            dynamic                  CSG
  105.      XmNlabelType                XmCLabelType                unsigned char       XmSTRING                 CSG
  106.      XmNmarginBottom             XmCMarginBottom             Dimension           0                        CSG
  107.      XmNmarginHeight             XmCMarginHeight             Dimension           2                        CSG
  108.      XmNmarginLeft               XmCMarginLeft               Dimension           0                        CSG
  109.      XmNmarginRight              XmCMarginRight              Dimension           0                        CSG
  110.      XmNmarginTop                XmCMarginTop                Dimension           0                        CSG
  111.      XmNmarginWidth              XmCMarginWidth              Dimension           2                        CSG
  112.      XmNmnemonic                 XmCMnemonic                 KeySym              NULL                     CSG
  113.      XmNmnemonicCharSet          XmCMnemonicCharSet          String              XmFONTLIST_DEFAULT_TAG   CSG
  114.      XmNrecomputeSize            XmCRecomputeSize            Boolean             True                     CSG
  115.      XmNstringDirection          XmCStringDirection          XmStringDirection   dynamic                  CSG
  116.  
  117.  
  118.           XXXXmmmmNNNNaaaacccccccceeeelllleeeerrrraaaattttoooorrrr
  119.                     Sets the accelerator on a button widget in a menu,
  120.                     which activates a visible or invisible, but
  121.                     managed, button from the keyboard.  This resource
  122.                     is a string that describes a set of modifiers and
  123.                     the key that may be used to select the button.
  124.                     The format of this string is identical to that
  125.                     used by the translations manager, with the
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))               UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV               XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))
  137.  
  138.  
  139.  
  140.                     exception that only a single event may be
  141.                     specified and only KKKKeeeeyyyyPPPPrrrreeeessssssss events are allowed.
  142.  
  143.                     Accelerators for buttons are supported only for
  144.                     PushButtons and ToggleButtons in Pulldown and
  145.                     Popup MenuPanes.
  146.  
  147.           XXXXmmmmNNNNaaaacccccccceeeelllleeeerrrraaaattttoooorrrrTTTTeeeexxxxtttt
  148.                     Specifies the text displayed for the accelerator.
  149.                     The text is displayed adjacent to the label string
  150.                     or pixmap.  Accelerator text for buttons is
  151.                     displayed only for PushButtons and ToggleButtons
  152.                     in Pulldown and Popup Menus.
  153.  
  154.           XXXXmmmmNNNNaaaalllliiiiggggnnnnmmmmeeeennnntttt
  155.                     Specifies the label alignment for text or pixmap.
  156.  
  157.  
  158.                       +o  XXXXmmmmAAAALLLLIIIIGGGGNNNNMMMMEEEENNNNTTTT____BBBBEEEEGGGGIIIINNNNNNNNIIIINNNNGGGG (left alignment)-causes
  159.                          the left sides of the lines of text to be
  160.                          vertically aligned with the left edge of the
  161.                          widget window.  For a pixmap, its left side
  162.                          is vertically aligned with the left edge of
  163.                          the widget window.
  164.  
  165.                       +o  XXXXmmmmAAAALLLLIIIIGGGGNNNNMMMMEEEENNNNTTTT____CCCCEEEENNNNTTTTEEEERRRR (center alignment)-causes
  166.                          the centers of the lines of text to be
  167.                          vertically aligned in the center of the
  168.                          widget window.  For a pixmap, its center is
  169.                          vertically aligned with the center of the
  170.                          widget window.
  171.  
  172.                       +o  XXXXmmmmAAAALLLLIIIIGGGGNNNNMMMMEEEENNNNTTTT____EEEENNNNDDDD (right alignment)-causes the
  173.                          right sides of the lines of text to be
  174.                          vertically aligned with the right edge of the
  175.                          widget window.  For a pixmap, its right side
  176.                          is vertically aligned with the right edge of
  177.                          the widget window.
  178.  
  179.  
  180.                     The above descriptions for text are correct when
  181.                     XXXXmmmmNNNNssssttttrrrriiiinnnnggggDDDDiiiirrrreeeeccccttttiiiioooonnnn is XXXXmmmmSSSSTTTTRRRRIIIINNNNGGGG____DDDDIIIIRRRREEEECCCCTTTTIIIIOOOONNNN____LLLL____TTTTOOOO____RRRR.
  182.                     When that resource is XXXXmmmmSSSSTTTTRRRRIIIINNNNGGGG____DDDDIIIIRRRREEEECCCCTTTTIIIIOOOONNNN____RRRR____TTTTOOOO____LLLL,
  183.                     the descriptions for XXXXmmmmAAAALLLLIIIIGGGGNNNNMMMMEEEENNNNTTTT____BBBBEEEEGGGGIIIINNNNNNNNIIIINNNNGGGG and
  184.                     XXXXmmmmAAAALLLLIIIIGGGGNNNNMMMMEEEENNNNTTTT____EEEENNNNDDDD are switched.
  185.  
  186.                     If the parent is a RowColumn whose XXXXmmmmNNNNiiiissssAAAAlllliiiiggggnnnneeeedddd
  187.                     resource is True, XXXXmmmmNNNNaaaalllliiiiggggnnnnmmmmeeeennnntttt is forced to the
  188.                     same value as the RowColumn's XXXXmmmmNNNNeeeennnnttttrrrryyyyAAAAlllliiiiggggnnnnmmmmeeeennnntttt if
  189.                     the RowColumn's XXXXmmmmNNNNrrrroooowwwwCCCCoooolllluuuummmmnnnnTTTTyyyyppppeeee is XXXXmmmmWWWWOOOORRRRKKKK____AAAARRRREEEEAAAA or
  190.                     if the widget is a subclass of XmLabel.
  191.                     Otherwise, the default is XXXXmmmmAAAALLLLIIIIGGGGNNNNMMMMEEEENNNNTTTT____CCCCEEEENNNNTTTTEEEERRRR.
  192.  
  193.  
  194.  
  195.      Page 3                                          (printed 4/30/98)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))               UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV               XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))
  203.  
  204.  
  205.  
  206.           XXXXmmmmNNNNffffoooonnnnttttLLLLiiiisssstttt
  207.                     Specifies the font of the text used in the widget.
  208.                     If this value is NULL at initialization, the font
  209.                     list is initialized by looking up the parent
  210.                     hierarchy of the widget for an ancestor that is a
  211.                     subclass of the XmBulletinBoard, VendorShell, or
  212.                     XmMenuShell widget class.  If such  an ancestor is
  213.                     found, the font list is initialized to the
  214.                     XXXXmmmmNNNNbbbbuuuuttttttttoooonnnnFFFFoooonnnnttttLLLLiiiisssstttt  (for button subclasses) or
  215.                     XXXXmmmmNNNNllllaaaabbbbeeeellllFFFFoooonnnnttttLLLLiiiisssstttt of the ancestor widget.  If no
  216.                     such ancestor is found, the default is
  217.                     implementation dependent.  Refer to XXXXmmmmFFFFoooonnnnttttLLLLiiiisssstttt((((3333XXXX))))
  218.                     for more information on the creation and structure
  219.                     of a font list.
  220.  
  221.           XXXXmmmmNNNNllllaaaabbbbeeeellllIIIInnnnsssseeeennnnssssiiiittttiiiivvvveeeePPPPiiiixxxxmmmmaaaapppp
  222.                     Specifies a pixmap used as the button face if
  223.                     XXXXmmmmNNNNllllaaaabbbbeeeellllTTTTyyyyppppeeee is XXXXmmmmPPPPIIIIXXXXMMMMAAAAPPPP and the button is
  224.                     insensitive.  The default value,
  225.                     XXXXmmmmUUUUNNNNSSSSPPPPEEEECCCCIIIIFFFFIIIIEEEEDDDD____PPPPIIIIXXXXMMMMAAAAPPPP, displays an empty label.
  226.  
  227.           XXXXmmmmNNNNllllaaaabbbbeeeellllPPPPiiiixxxxmmmmaaaapppp
  228.                     Specifies the pixmap when XXXXmmmmNNNNllllaaaabbbbeeeellllTTTTyyyyppppeeee is
  229.                     XXXXmmmmPPPPIIIIXXXXMMMMAAAAPPPP.  The default value,
  230.                     XXXXmmmmUUUUNNNNSSSSPPPPEEEECCCCIIIIFFFFIIIIEEEEDDDD____PPPPIIIIXXXXMMMMAAAAPPPP, displays an empty label.
  231.  
  232.           XXXXmmmmNNNNllllaaaabbbbeeeellllSSSSttttrrrriiiinnnngggg
  233.                     Specifies the compound string when the
  234.                     XXXXmmmmNNNNllllaaaabbbbeeeellllTTTTyyyyppppeeee is XXXXmmmmSSSSTTTTRRRRIIIINNNNGGGG.  If this value is NULL,
  235.                     it is initialized by converting the name of the
  236.                     widget to a compound string.  Refer to
  237.                     XXXXmmmmSSSSttttrrrriiiinnnngggg((((3333XXXX)))) for more information on the creation
  238.                     and structure of compound strings.
  239.  
  240.           XXXXmmmmNNNNllllaaaabbbbeeeellllTTTTyyyyppppeeee
  241.                     Specifies the label type.
  242.  
  243.  
  244.                       +o  XXXXmmmmSSSSTTTTRRRRIIIINNNNGGGG-displays text using XXXXmmmmNNNNllllaaaabbbbeeeellllSSSSttttrrrriiiinnnngggg.
  245.  
  246.                       +o  XXXXmmmmPPPPIIIIXXXXMMMMAAAAPPPP-displays pixmap using XXXXmmmmNNNNllllaaaabbbbeeeellllPPPPiiiixxxxmmmmaaaapppp
  247.                          or XXXXmmmmNNNNllllaaaabbbbeeeellllIIIInnnnsssseeeennnnssssiiiittttiiiivvvveeeePPPPiiiixxxxmmmmaaaapppp.
  248.  
  249.  
  250.           XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnBBBBoooottttttttoooommmm
  251.                     Specifies the amount of spacing between the bottom
  252.                     of the label text and the top of the bottom margin
  253.                     specified by XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnHHHHeeeeiiiigggghhhhtttt.  This may be
  254.                     modified by Label's subclasses.  For example,
  255.                     CascadeButton may increase this field to make room
  256.                     for the cascade pixmap.
  257.  
  258.  
  259.  
  260.  
  261.      Page 4                                          (printed 4/30/98)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))               UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV               XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))
  269.  
  270.  
  271.  
  272.           XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnHHHHeeeeiiiigggghhhhtttt
  273.                     Specifies an equal amount of spacing above the
  274.                     margin defined by XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnTTTToooopppp and below the
  275.                     margin defined by XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnBBBBoooottttttttoooommmm. XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnHHHHeeeeiiiigggghhhhtttt
  276.                     specifies the amount of spacing between the top
  277.                     edge of the margin set by XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnTTTToooopppp and the
  278.                     bottom edge of the top shadow, and the amount of
  279.                     spacing between the bottom edge of the margin
  280.                     specified by XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnBBBBoooottttttttoooommmm and the top edge of
  281.                     the bottom shadow.
  282.  
  283.           XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnLLLLeeeefffftttt
  284.                     Specifies the amount of spacing between the left
  285.                     edge of the label text and the right side of the
  286.                     left margin (specified by XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnWWWWiiiiddddtttthhhh).  This
  287.                     may be modified by Label's subclasses.  For
  288.                     example, ToggleButton may increase this field to
  289.                     make room for the toggle indicator and for spacing
  290.                     between the indicator and label.  Whether this
  291.                     actually applies to the left or right side of the
  292.                     label may depend on the value of
  293.                     XXXXmmmmNNNNssssttttrrrriiiinnnnggggDDDDiiiirrrreeeeccccttttiiiioooonnnn.
  294.  
  295.           XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnRRRRiiiigggghhhhtttt
  296.                     Specifies the amount of spacing between the right
  297.                     edge of the label text and the left side of the
  298.                     right margin (specified by XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnWWWWiiiiddddtttthhhh).  This
  299.                     may be modified by Label's subclasses.  For
  300.                     example, CascadeButton may increase this field to
  301.                     make room for the cascade pixmap.  Whether this
  302.                     actually applies to the left or right side of the
  303.                     label may depend on the value of
  304.                     XXXXmmmmNNNNssssttttrrrriiiinnnnggggDDDDiiiirrrreeeeccccttttiiiioooonnnn.
  305.  
  306.           XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnTTTToooopppp
  307.                     Specifies the amount of spacing between the top of
  308.                     the label text and the bottom of the top margin
  309.                     specified by XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnHHHHeeeeiiiigggghhhhtttt.  This may be
  310.                     modified by Label's subclasses.  For example,
  311.                     CascadeButton may increase this field to make room
  312.                     for the cascade pixmap.
  313.  
  314.           XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnWWWWiiiiddddtttthhhh
  315.                     Specifies an equal amount of spacing to the left
  316.                     of the margin defined by XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnLLLLeeeefffftttt and to the
  317.                     right of the margin defined by XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnRRRRiiiigggghhhhtttt.
  318.                     XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnWWWWiiiiddddtttthhhh specifies the amount of spacing
  319.                     between the left edge of the margin set by
  320.                     XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnLLLLeeeefffftttt and the right edge of the left
  321.                     shadow, and the amount of spacing between the
  322.                     right edge of the margin specified by
  323.                     XXXXmmmmNNNNmmmmaaaarrrrggggiiiinnnnRRRRiiiigggghhhhtttt and the left edge of the right
  324.  
  325.  
  326.  
  327.      Page 5                                          (printed 4/30/98)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))               UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV               XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))
  335.  
  336.  
  337.  
  338.                     shadow.
  339.  
  340.           XXXXmmmmNNNNmmmmnnnneeeemmmmoooonnnniiiicccc
  341.                     Provides the user with an alternate means of
  342.                     activating a button.  A button in a MenuBar, a
  343.                     Popup MenuPane, or a Pulldown MenuPane can have a
  344.                     mnemonic.
  345.  
  346.                     This resource contains a keysym as listed in the
  347.                     X11 keysym table.  The first character in the
  348.                     label string that exactly matches the mnemonic in
  349.                     the character set specified in XXXXmmmmNNNNmmmmnnnneeeemmmmoooonnnniiiiccccCCCChhhhaaaarrrrSSSSeeeetttt
  350.                     is underlined when the button is displayed.
  351.  
  352.                     When a mnemonic has been specified, the user
  353.                     activates the button by pressing the mnemonic key
  354.                     while the button is visible.  If the button is a
  355.                     CascadeButton in a MenuBar and the MenuBar does
  356.                     not have the focus, the user must use the MMMMAAAAlllltttt
  357.                     modifier while pressing the mnemonic.  The user
  358.                     can activate the button by pressing either the
  359.                     shifted or the unshifted mnemonic key.
  360.  
  361.           XXXXmmmmNNNNmmmmnnnneeeemmmmoooonnnniiiiccccCCCChhhhaaaarrrrSSSSeeeetttt
  362.                     Specifies the character set of the mnemonic for
  363.                     the label.  The default is XXXXmmmmFFFFOOOONNNNTTTTLLLLIIIISSSSTTTT____DDDDEEEEFFFFAAAAUUUULLLLTTTT____TTTTAAAAGGGG.
  364.  
  365.           XXXXmmmmNNNNrrrreeeeccccoooommmmppppuuuutttteeeeSSSSiiiizzzzeeee
  366.                     Specifies a Boolean value that indicates whether
  367.                     the widget shrinks or expands to accommodate its
  368.                     contents (label string or pixmap) as a result of
  369.                     an XXXXttttSSSSeeeettttVVVVaaaalllluuuueeeessss resource value that would change
  370.                     the size of the widget.  If True, the widget
  371.                     shrinks or expands to exactly fit the label string
  372.                     or pixmap.  If False, the widget never attempts to
  373.                     change size on its own.
  374.  
  375.           XXXXmmmmNNNNssssttttrrrriiiinnnnggggDDDDiiiirrrreeeeccccttttiiiioooonnnn
  376.                     Specifies the direction in which the string is to
  377.                     be drawn.  The following are the values:
  378.  
  379.  
  380.                       +o  XXXXmmmmSSSSTTTTRRRRIIIINNNNGGGG____DDDDIIIIRRRREEEECCCCTTTTIIIIOOOONNNN____LLLL____TTTTOOOO____RRRR-left to right
  381.  
  382.                       +o  XXXXmmmmSSSSTTTTRRRRIIIINNNNGGGG____DDDDIIIIRRRREEEECCCCTTTTIIIIOOOONNNN____RRRR____TTTTOOOO____LLLL-right to left
  383.  
  384.  
  385.                     The default for this resource is determined at
  386.                     creation time.  If no value is specified for this
  387.                     resource and the widget's parent is a manager, the
  388.                     value is inherited from the parent; otherwise, it
  389.                     defaults to XXXXmmmmSSSSTTTTRRRRIIIINNNNGGGG____DDDDIIIIRRRREEEECCCCTTTTIIIIOOOONNNN____LLLL____TTTTOOOO____RRRR.
  390.  
  391.  
  392.  
  393.      Page 6                                          (printed 4/30/98)
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.      XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))               UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV               XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))
  401.  
  402.  
  403.  
  404.         IIIInnnnhhhheeeerrrriiiitttteeeedddd RRRReeeessssoooouuuurrrrcccceeeessss
  405.           Label inherits behavior and resources from the following
  406.           superclasses.  For a complete description of each resource,
  407.           refer to the man page for that superclass.
  408.  
  409.                                          XXXXmmmmPPPPrrrriiiimmmmiiiittttiiiivvvveeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
  410.      NNNNaaaammmmeeee                    CCCCllllaaaassssssss                   TTTTyyyyppppeeee               DDDDeeeeffffaaaauuuulllltttt                AAAAcccccccceeeessssssss
  411.      ________________________________________________________________________________________________
  412.      XmNbottomShadowColor    XmCBottomShadowColor    Pixel              dynamic                CSG
  413.      XmNbottomShadowPixmap   XmCBottomShadowPixmap   Pixmap             XmUNSPECIFIED_PIXMAP   CSG
  414.      XmNforeground           XmCForeground           Pixel              dynamic                CSG
  415.      XmNhelpCallback         XmCCallback             XtCallbackList     NULL                   C
  416.      XmNhighlightColor       XmCHighlightColor       Pixel              dynamic                CSG
  417.      XmNhighlightOnEnter     XmCHighlightOnEnter     Boolean            False                  CSG
  418.      XmNhighlightPixmap      XmCHighlightPixmap      Pixmap             dynamic                CSG
  419.      XmNhighlightThickness   XmCHighlightThickness   Dimension          0                      CSG
  420.      XmNnavigationType       XmCNavigationType       XmNavigationType   XmNONE                 CSG
  421.      XmNshadowThickness      XmCShadowThickness      Dimension          0                      CSG
  422.      XmNtopShadowColor       XmCTopShadowColor       Pixel              dynamic                CSG
  423.      XmNtopShadowPixmap      XmCTopShadowPixmap      Pixmap             dynamic                CSG
  424.      XmNtraversalOn          XmCTraversalOn          Boolean            False                  CSG
  425.      XmNunitType             XmCUnitType             unsigned char      dynamic                CSG
  426.      XmNuserData             XmCUserData             XtPointer          NULL                   CSG
  427.  
  428.                                                    CCCCoooorrrreeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
  429.      NNNNaaaammmmeeee                            CCCCllllaaaassssssss                           TTTTyyyyppppeeee             DDDDeeeeffffaaaauuuulllltttt                AAAAcccccccceeeessssssss
  430.      ______________________________________________________________________________________________________________
  431.      XmNaccelerators                 XmCAccelerators                 XtAccelerators   dynamic                CSG
  432.      XmNancestorSensitive            XmCSensitive                    Boolean          dynamic                G
  433.      XmNbackground                   XmCBackground                   Pixel            dynamic                CSG
  434.      XmNbackgroundPixmap             XmCPixmap                       Pixmap           XmUNSPECIFIED_PIXMAP   CSG
  435.      XmNborderColor                  XmCBorderColor                  Pixel            XtDefaultForeground    CSG
  436.      XmNborderPixmap                 XmCPixmap                       Pixmap           XmUNSPECIFIED_PIXMAP   CSG
  437.      XmNborderWidth                  XmCBorderWidth                  Dimension        0                      CSG
  438.      XmNcolormap                     XmCColormap                     Colormap         dynamic                CG
  439.      XmNdepth                        XmCDepth                        int              dynamic                CG
  440.      XmNdestroyCallback              XmCCallback                     XtCallbackList   NULL                   C
  441.      XmNheight                       XmCHeight                       Dimension        dynamic                CSG
  442.      XmNinitialResourcesPersistent   XmCInitialResourcesPersistent   Boolean          True                   C
  443.      XmNmappedWhenManaged            XmCMappedWhenManaged            Boolean          True                   CSG
  444.      XmNscreen                       XmCScreen                       Screen *         dynamic                CG
  445.      XmNsensitive                    XmCSensitive                    Boolean          True                   CSG
  446.      XmNtranslations                 XmCTranslations                 XtTranslations   dynamic                CSG
  447.      XmNwidth                        XmCWidth                        Dimension        dynamic                CSG
  448.      XmNx                            XmCPosition                     Position         0                      CSG
  449.      XmNy                            XmCPosition                     Position         0                      CSG
  450.  
  451.         TTTTrrrraaaannnnssssllllaaaattttiiiioooonnnnssss
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.      Page 7                                          (printed 4/30/98)
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.      XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))               UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV               XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))
  467.  
  468.  
  469.  
  470.           XmLabel includes translations from Primitive.  The XmLabel
  471.           translations are listed below.  These translations may not
  472.           directly correspond to a translation table.
  473.  
  474.           BBBBDDDDrrrraaaagggg PPPPrrrreeeessssssss::::   PPPPrrrroooocccceeeessssssssDDDDrrrraaaagggg(((())))
  475.  
  476.           KKKKHHHHeeeellllpppp::::         HHHHeeeellllpppp(((())))
  477.  
  478.           The translations used by subclasses of XmLabel for menu
  479.           traversal are listed below.  These translations may not
  480.           directly correspond to a translation table.
  481.  
  482.           KKKKLLLLeeeefffftttt::::         MMMMeeeennnnuuuuTTTTrrrraaaavvvveeeerrrrsssseeeeLLLLeeeefffftttt(((())))
  483.           KKKKRRRRiiiigggghhhhtttt::::        MMMMeeeennnnuuuuTTTTrrrraaaavvvveeeerrrrsssseeeeRRRRiiiigggghhhhtttt(((())))
  484.           KKKKUUUUpppp::::           MMMMeeeennnnuuuuTTTTrrrraaaavvvveeeerrrrsssseeeeUUUUpppp(((())))
  485.           KKKKDDDDoooowwwwnnnn::::         MMMMeeeennnnuuuuTTTTrrrraaaavvvveeeerrrrsssseeeeDDDDoooowwwwnnnn(((())))
  486.           MMMMAAAAnnnnyyyy KKKKCCCCaaaannnncccceeeellll::::  MMMMeeeennnnuuuuEEEEssssccccaaaappppeeee(((())))
  487.  
  488.  
  489.         AAAAccccttttiiiioooonnnn RRRRoooouuuuttttiiiinnnneeeessss
  490.           The XmLabel action routines are described below:
  491.  
  492.  
  493.           HHHHeeeellllpppp(((()))):   In a Popup or Pulldown MenuPane, unposts all menus
  494.                     in the menu hierarchy and, when the shell's
  495.                     keyboard focus policy is XXXXmmmmEEEEXXXXPPPPLLLLIIIICCCCIIIITTTT, restores
  496.                     keyboard focus to the widget that had the focus
  497.                     before the menu system was entered.  Calls the
  498.                     callbacks for XXXXmmmmNNNNhhhheeeellllppppCCCCaaaallllllllbbbbaaaacccckkkk if any exist.  If
  499.                     there are no help callbacks for this widget, this
  500.                     action calls the help callbacks for the nearest
  501.                     ancestor that has them.
  502.  
  503.           MMMMeeeennnnuuuuEEEEssssccccaaaappppeeee(((()))):
  504.                     In a MenuBar, disarms the CascadeButton and the
  505.                     menu and, when the shell's keyboard focus policy
  506.                     is XXXXmmmmEEEEXXXXPPPPLLLLIIIICCCCIIIITTTT, restores keyboard focus to the
  507.                     widget that had the focus before the menu was
  508.                     entered.
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.      Page 8                                          (printed 4/30/98)
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.      XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))               UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV               XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))
  533.  
  534.  
  535.  
  536.                     In a toplevel Pulldown MenuPane from a MenuBar,
  537.                     unposts the menu, disarms the MenuBar
  538.                     CascadeButton and the MenuBar, and, when the
  539.                     shell's keyboard focus policy is XXXXmmmmEEEEXXXXPPPPLLLLIIIICCCCIIIITTTT,
  540.                     restores keyboard focus to the widget that had the
  541.                     focus before the MenuBar was entered.  In other
  542.                     Pulldown MenuPanes, unposts the menu and moves the
  543.                     focus to its CascadeButton.
  544.  
  545.                     In a Popup MenuPane, unposts the menu and, when
  546.                     the shell's keyboard focus policy is XXXXmmmmEEEEXXXXPPPPLLLLIIIICCCCIIIITTTT,
  547.                     restores keyboard focus to the widget from which
  548.                     the menu was posted.
  549.  
  550.           MMMMeeeennnnuuuuTTTTrrrraaaavvvveeeerrrrsssseeeeDDDDoooowwwwnnnn(((()))):
  551.                     If the current menu item has a submenu and is in a
  552.                     MenuBar, then this action posts the submenu,
  553.                     disarms the current menu item, and arms the
  554.                     submenu's first traversable menu item.
  555.  
  556.                     If the current menu item is in a MenuPane, then
  557.                     this action disarms the current menu item and arms
  558.                     the item below it.  This action wraps within the
  559.                     MenuPane.  When the current menu item is at the
  560.                     MenuPane's bottom edge, then this action wraps to
  561.                     the topmost menu item in the column to the right,
  562.                     if one exists.  When the current menu item is at
  563.                     the bottom, rightmost corner of the MenuPane, then
  564.                     this action wraps to the tear-off control, if
  565.                     present, or to the top, leftmost menu item.
  566.  
  567.           MMMMeeeennnnuuuuTTTTrrrraaaavvvveeeerrrrsssseeeeLLLLeeeefffftttt(((()))):
  568.                     When the current menu item is in a MenuBar, then
  569.                     this action disarms the current item and arms the
  570.                     MenuBar item to the left.  This action wraps
  571.                     within the MenuBar.
  572.  
  573.                     In MenuPanes, if the current menu item is not at
  574.                     the left edge of a MenuPane, this action disarms
  575.                     the current item and arms the item to its left.
  576.                     If the current menu item is at the left edge of a
  577.                     submenu attached to a MenuBar item, then this
  578.                     action unposts the submenu and traverses to the
  579.                     MenuBar item to the left, wrapping if necessary.
  580.                     If that MenuBar item has a submenu, it posts the
  581.                     submenu and arms the first traversable item in the
  582.                     submenu.  If the current menu item is at the left
  583.                     edge of a submenu not directly attached to a
  584.                     MenuBar item, then this action unposts the current
  585.                     submenu only.
  586.  
  587.                     In Popup or Torn-off MenuPanes, when the current
  588.  
  589.  
  590.  
  591.      Page 9                                          (printed 4/30/98)
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.      XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))               UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV               XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))
  599.  
  600.  
  601.  
  602.                     menu item is at the left edge, this  action wraps
  603.                     within the MenuPane.  If the current menu item is
  604.                     at the left edge of the MenuPane and not in the
  605.                     top row, this action wraps to the rightmost menu
  606.                     item in the row above.  If the current menu item
  607.                     is in the upper, leftmost corner, this action
  608.                     wraps to the tear-off control, if present, or else
  609.                     it wraps to the bottom, rightmost menu item in the
  610.                     MenuPane.
  611.  
  612.           MMMMeeeennnnuuuuTTTTrrrraaaavvvveeeerrrrsssseeeeRRRRiiiigggghhhhtttt(((()))):
  613.                     If the current menu item is in a MenuBar, then
  614.                     this action disarms the current item and arms the
  615.                     MenuBar item to the right.  This action wraps
  616.                     within the MenuBar.
  617.  
  618.                     In MenuPanes, if the current menu item is a
  619.                     CascadeButton, then this action posts its
  620.                     associated submenu.  If the current menu item is
  621.                     not a CascadeButton and is not at the right edge
  622.                     of a MenuPane, this action disarms the current
  623.                     item and arms the item to its right, wrapping if
  624.                     necessary. If the current menu item is not a
  625.                     CascadeButton and is at the right edge of a
  626.                     submenu that is a descendent of a MenuBar, then
  627.                     this action unposts all submenus and traverses to
  628.                     the MenuBar item to the right.  If that MenuBar
  629.                     item has a submenu, it posts the submenu and arms
  630.                     the submenu's first traversable item.
  631.  
  632.                     In Popup or Torn-off menus, if the current menu
  633.                     item is not a CascadeButton and is at the right
  634.                     edge of a row (except the bottom row), this action
  635.                     wraps to the leftmost menu item in the row below.
  636.                     If the current menu item is not a CascadeButton
  637.                     and is in the bottom, rightmost corner of a Popup
  638.                     or Pulldown MenuPane, this action wraps to the
  639.                     tear-off control, if present, or else it wraps to
  640.                     the top, leftmost menu item of the MenuPane.
  641.  
  642.           MMMMeeeennnnuuuuTTTTrrrraaaavvvveeeerrrrsssseeeeUUUUpppp(((()))):
  643.                     When the current menu item is in a MenuPane, then
  644.                     this action disarms the current menu item and arms
  645.                     the item above it.  This action wraps within the
  646.                     MenuPane.  When the current menu item is at the
  647.                     MenuPane's top edge, then this action wraps to the
  648.                     bottommost menu item in the column to the left, if
  649.                     one exists.  When the current menu item is at the
  650.                     top, leftmost corner of the MenuPane, then this
  651.                     action wraps to the tear-off control, if present,
  652.                     or to the bottom, rightmost menu item.
  653.  
  654.  
  655.  
  656.  
  657.      Page 10                                         (printed 4/30/98)
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.      XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))               UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV               XXXXmmmmLLLLaaaabbbbeeeellll((((3333XXXX))))
  665.  
  666.  
  667.  
  668.           PPPPrrrroooocccceeeessssssssDDDDrrrraaaagggg(((()))):
  669.                     Drags the contents of a Label, identified by
  670.                     pressing BBBBDDDDrrrraaaagggg.  This action creates a DragContext
  671.                     object whose XXXXmmmmNNNNeeeexxxxppppoooorrrrttttTTTTaaaarrrrggggeeeettttssss resource is set to
  672.                     "COMPOUND_TEXT" for a label type of XXXXmmmmSSSSTTTTRRRRIIIINNNNGGGG;
  673.                     otherwise, "PIXMAP" if the label type is XXXXmmmmPPPPIIIIXXXXMMMMAAAAPPPP.
  674.                     This action is undefined for Labels used in a menu
  675.                     system.
  676.  
  677.  
  678.         VVVViiiirrrrttttuuuuaaaallll BBBBiiiinnnnddddiiiinnnnggggssss
  679.           The bindings for virtual keys are vendor specific.  For
  680.           information about bindings for virtual buttons and keys, see
  681.           VVVViiiirrrrttttuuuuaaaallllBBBBiiiinnnnddddiiiinnnnggggssss((((3333XXXX)))).
  682.  
  683.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  684.           CCCCoooorrrreeee((((3333XXXX)))), XXXXmmmmCCCCrrrreeeeaaaatttteeeeLLLLaaaabbbbeeeellll((((3333XXXX)))), XXXXmmmmFFFFoooonnnnttttLLLLiiiissssttttAAAAppppppppeeeennnnddddEEEEnnnnttttrrrryyyy((((3333XXXX)))),
  685.           XXXXmmmmSSSSttttrrrriiiinnnnggggCCCCrrrreeeeaaaatttteeee((((3333XXXX)))), XXXXmmmmSSSSttttrrrriiiinnnnggggCCCCrrrreeeeaaaatttteeeeLLLLttttooooRRRR((((3333XXXX)))), and
  686.           XXXXmmmmPPPPrrrriiiimmmmiiiittttiiiivvvveeee((((3333XXXX)))).
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.      Page 11                                         (printed 4/30/98)
  724.  
  725.  
  726.  
  727.